FROM alpine:edge
RUN apk update
RUN apk add rsync
RUN apk add davfs2
COPY help.txt /root/help.txt
COPY crontab /etc/crontabs/root
COPY etc_davfs2_davfs2.conf /etc/davfs2/davfs2.conf
ADD run.sh /run.sh
RUN chmod +x /run.sh
RUN mkdir /root/data
VOLUME "/root/data"
WORKDIR "/root"
CMD ["/run.sh"]
